
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Grebok.Common;
using Grebok.Common.Configuration;

namespace EVegetable.Persistence.Test.DataManager
{
    public class TeBiz_Basic_PaymentInfoManager : BaseManager
    {
        #region private field

        private static TeBiz_Basic_PaymentInfoManager manager;
        #endregion

        #region Properties
        
        public Int32 PaymentID
        {
            get { return GetConfig<Int32>("PaymentID"); }
            set { SetConfig<Int32>("PaymentID", value); }
        }
        
        public String PaymentType
        {
            get { return GetConfig<String>("PaymentType"); }
            set { SetConfig<String>("PaymentType", value); }
        }
        

        #endregion

        #region Constructor

        /// <summary>
        /// TeBiz_Basic_PaymentInfoManager
        /// </summary>
        private TeBiz_Basic_PaymentInfoManager()
        {
            IApplicationConfiguration configuration = ApplicationConfigurationFactor.CreateApplicationConfiguration();
            appPropertiese = new ApplicationProperties(configuration[PropertiesConst.TEBIZ_BASIC_PAYMENTINFO_PROPERTIES_FILE_NAME_KEY],
                configuration[PropertiesConst.TEBIZ_BASIC_PAYMENTINFO_PROPERTIES_SECTION_NAME_KEY]);

            appPropertieseValues = new Dictionary<string, object>();
        }
        #endregion

        #region TeBiz_Basic_PaymentInfoManager Instance

        /// <summary>
        /// TeBiz_Basic_PaymentInfoManager's Instance
        /// </summary>
        public static TeBiz_Basic_PaymentInfoManager Instance
        {
            get
            {
                if (manager == null)
                {
                    manager = new TeBiz_Basic_PaymentInfoManager();
                }
                return manager;
            }
        }
        #endregion

    }
}
